﻿using System.ComponentModel.DataAnnotations;

namespace Wips.AppService.Publisher.PublishFlows.Models
{
    /// <summary>
    /// 发布流程
    /// </summary>
    public class PublishFlowModel
    {

        /// <summary>
        /// 主键
        /// </summary>
        public string? Id { get; set; }

        /// <summary>
        /// 归属服务
        /// </summary>
        public string AgentServerConfigId { get; set; } = "";


        /// <summary>
        /// 归属服务器
        /// </summary>
        public string AgentServerId { get; set; } = "";

        /// <summary>
        /// 发布流程名称 - 自动生成
        /// </summary>
        public string Name { get; set; } = "";

        /// <summary>
        /// 发布内容
        /// </summary>
        [MaxLength(500)]
        public string Context { get; set; } = "";


        /// <summary>
        ///
        /// </summary>
        public List<PublishFlowNodeModel>? Nodes { get; set; }
    }
}
